﻿using XsqTech.SmartOA.Domain.Table;
using XsqTech.SmartOA.Dtos.DTO.Dict;

namespace XsqTech.SmartOA.IService
{
    public interface IDictService
    {
        /// <summary>
        /// 数据字典显示接口
        /// </summary>
        /// <returns></returns>
        public List<Dict> GetDict();
        /// <summary>
        /// 数据字典添加接口
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public ReturnDTO<Dict> PustDictAdd(Dict model);
        /// <summary>
        /// 数据字典修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int UpdateDict(DictUpdateDto model);
        /// <summary>
        /// 数据字典删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DeleteDict(int id);
        /// <summary>
        /// 根据主键获取
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Dict DictMainRefill(int id);
    }
}